package com.example.myblog.dao;

import cn.hutool.db.PageResult;
import com.example.myblog.entity.Columnist;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


@Mapper
public interface ColumnistMapper {
    int addColumnist(Columnist columnist);

    Page<Columnist> listType();

    List<Columnist> findColumnistAll();

    List<Columnist> findColumnistTopNum(Integer num);

    int deleteColumnistById(int id);

    Columnist findColumnistById(int id);

    int updateColumnist(Columnist columnist);

    Columnist findColumnistByCondition(Map<String,Object> map);
}
